import request from "@/utils/request";
//分页查询
export function listCheckinCusInfoPage(query) {
  return request({
    url: "/checkinCusInfor/page",
    method: "get",
    params: query
  });
}

//根据姓名查询入住人信息
export function searchCheckinCusInfoByName(checkinCusName) {
  return request({
    url: "/checkinCusInfor/queryByName/" + checkinCusName,
    method: "get",
    params: checkinCusName
  });
}

//修改入住人信息
export function editCheckinCusInfo(data) {
  return request({
    url: "/checkinCusInfor",
    method: "put",
    data: data
  });
}

//添加入住人信息
export function addCheckinCusInfo(data) {
  return request({
    url: "/checkinInfor/doRegistered",
    method: "post",
    data: data
  });
}

//删除信息
export function deleteCheckinCusInfo(id) {
  return request({
    url: "/checkinCusInfor/delete/" + id,
    method: "delete"
  });
}
